FROM registry.cn-shenzhen.aliyuncs.com/liaojx/php-fpm:latest
LABEL createtime="Tue 16 Mar 2021 10:33:02 AM HKT"
LABEL showdoc.version="v2.8.9"
COPY showdoc /var/www/html/showdoc
COPY templates /etc/nginx/templates
RUN {\
  apk update; \
  apk add jpeg-dev freetype-dev gd-dev libpng-dev libzip-dev; \
  docker-php-ext-configure gd --with-freetype --with-jpeg; \
  docker-php-ext-install gd; \
  docker-php-ext-configure zip; \
  docker-php-ext-install zip; \
  chown nginx:nginx /var/www/html/* -R; \
}
